package com.jake.hunter.pattern.observer.impl;

import com.jake.hunter.pattern.observer.BaseNumericObserver;
import com.jake.hunter.pattern.observer.NumericSubject;

public class DecimalObserver extends BaseNumericObserver {

    public DecimalObserver(NumericSubject subject) {
        this.subject = subject;
        this.subject.attach(this);
    }

    @Override
    public void update() {
        System.out.println("Hex String: " + subject.getState());
    }
}
